"""""
参数的包裹传递
"""
"使用 * 号来进行对不确定参数的包装"
def lang(*lang):
    print(lang)
lang("Python")
lang("C","C++","Python")

def lang1(name,*lang):
    print(f"{name}喜欢的编程语言如下：")
    for lang2 in lang:
        print(lang)
lang("Nun","Python")
lang("N","C","C++","Python")

def personinfo(**info):
    return info
result = personinfo(id=1,name="Nun",age=19,grade="大三")
print(result)

def personinfo(*lang,**info):
    for key,value in info.items():
        print(f"{key}:{value}")
    print("喜欢语言如下：")
    for lang in lang:
        print(lang,end=" ")
personinfo("N","C","C++","Python",id=1,name="Nun",age=19,grade="大三")

def product(a,b,c):
    return a*b*c
tuple = (22,10,22)
print(product(*tuple))
list = [1,3,4]
print(product(*list))
dict01={
    "a":22,
    "b":23,
    "c":21,
}
print(product(**dict01))


